<?
function format_date_for_input($date){
	if($date == '0000-00-00')
	{return NULL;}
	$date =  DateTime::createFromFormat('Y-m-d',$date);
	return $date !== FALSE ? $date->format('m/d/Y') : NULL;
};

$chooseAttrib = array('good' => 'good', 'fair' => 'fair', 'limited' => 'limited', 'none' => 'none' );
$genderAttrib = array('male'=>'Male','female'=>'Female');

$email = set_value('email',$student->email);
$child_fname = set_value('child_fname',$student->firstname);
$child_mname = set_value('child_mname',$student->middlename);
$child_lname = set_value('child_lname',$student->lastname);
$child_nickname = set_value('child_nickname',$student->nickname);
$child_name_ext = set_value('child_name_ext',$student->name_ext);
$gender = set_value('gender',$student->gender);
$child_bdate = set_value('child_bdate',format_date_for_input($student->dob));
$child_nationality = set_value('child_nationality',$student->nationality);
$child_placeofbirth = set_value('child_placeofbirth',$student->pob);
$child_city_address = set_value('child_city_address',$student->present_address);
$child_telno = set_value('child_telno',$student->contact_no);
$mobile_phone = set_value('mobile_phone',$student->mobile_phone);
$child_religous = set_value('child_religous',$student->religion);
$living_in_ph_with_father = set_value('living_in_ph_with_father',$student->living_in_ph_with_father);
$living_in_ph_with_mother = set_value('living_in_ph_with_mother',$student->living_in_ph_with_mother);
$living_in_ph_with_step_father = set_value('living_in_ph_with_step_father',$student->living_in_ph_with_step_father);
$living_in_ph_with_step_mother = set_value('living_in_ph_with_step_mother',$student->living_in_ph_with_step_mother);
$living_in_ph_with_guardian = set_value('living_in_ph_with_guardian',$student->living_in_ph_with_guardian);
$living_in_ph_with_legal_guardian_name = set_value('living_in_ph_with_legal_guardian_name',$student->living_in_ph_with_legal_guardian_name);
$living_in_ph_with_legal_guardian_contact_number = set_value('living_in_ph_with_legal_guardian_contact_number',$student->living_in_ph_with_legal_guardian_contact_number);
$childs_english_reading_writing_level = set_value('childs_english_reading_writing_level',$student->childs_english_reading_writing_level);
$childs_english_verbal_proficiency = set_value('childs_english_verbal_proficiency',$student->childs_english_verbal_proficiency);
$language_at_home = set_value('language_at_home',$student->language_at_home);
$participation_in_advanced_level_classes = set_value('participation_in_advanced_level_classes',$student->participation_in_advanced_level_classes);
$remedial_help_in_previous_schools = set_value('remedial_help_in_previous_schools',$student->remedial_help_in_previous_schools);
$special_talent_interest_dance = set_value('special_talent_interest_dance',$student->special_talent_interest_dance);
$special_talent_interest_drama = set_value('special_talent_interest_drama',$student->special_talent_interest_drama);
$special_talent_interest_art = set_value('special_talent_interest_art',$student->special_talent_interest_art);
$special_talent_interest_acomputer = set_value('special_talent_interest_acomputer',$student->special_talent_interest_acomputer);
$special_talent_interest_vocal_chorus = set_value('special_talent_interest_vocal_chorus',$student->special_talent_interest_vocal_chorus);
$special_talent_interest_athletics = set_value('special_talent_interest_athletics',$student->special_talent_interest_athletics);
$special_talent_interest_athletics_spec = set_value('special_talent_interest_athletics_spec',$student->special_talent_interest_athletics_spec);
$special_talent_interest_band = set_value('special_talent_interest_band',$student->special_talent_interest_band);
$special_talent_interest_band_spec = set_value('special_talent_interest_band_spec',$student->special_talent_interest_band_spec);
$special_talent_interest_string = set_value('special_talent_interest_string',$student->special_talent_interest_string);
$special_talent_interest_string_spec = set_value('special_talent_interest_string_spec',$student->special_talent_interest_string_spec);
$hinder_childs_learning = set_value('hinder_childs_learning',$student->dhc_hinder_learning_process);
$leave_school = set_value('leave_school',$student->leave_school);
$previous_school = set_value('previous_school',$student->previous_school);
$previous_grade_level = set_value('previous_grade_level',$student->previous_grade_level);
$previous_school_address = set_value('previous_school_address',$student->previous_school_address);
$previous_school_grade_1 = set_value('previous_school_grade_1',$student->previous_school_grade_1);
$previous_school_name_1 = set_value('previous_school_name_1',$student->previous_school_name_1);
$previous_school_year_1 = set_value('previous_school_year_1',$student->previous_school_year_1);
$previous_school_grade_2 = set_value('previous_school_grade_2',$student->previous_school_grade_2);
$previous_school_name_2 = set_value('previous_school_name_2',$student->previous_school_name_2);
$previous_school_year_2 = set_value('previous_school_year_2',$student->previous_school_year_2);
$previous_school_grade_3 = set_value('previous_school_grade_3',$student->previous_school_grade_3);
$previous_school_name_3 = set_value('previous_school_name_3',$student->previous_school_name_3);
$previous_school_year_3 = set_value('previous_school_year_3',$student->previous_school_year_3);
$guardian_name = set_value('guardian_name',$student->guardian_name);
$guardian_mname = set_value('guardian_mname',$student->guardian_mname);
$guardian_lname = set_value('guardian_lname',$student->guardian_lname);
$guardian_citizenship = set_value('guardian_citizenship',$student->guardian_citizenship);
$guardian_visa = set_value('guardian_visa',$student->guardian_visa);
$guardian_occup = set_value('guardian_occup',$student->guardian_occup);
$guardian_office_tel = set_value('guardian_office_tel',$student->guardian_office_tel);
$guardian_contact_no = set_value('guardian_contact_no',$student->guardian_contact_no);
$guardian_contact_no_text = set_value('guardian_contact_no_text',$student->guardian_contact_no_text);
$name_of_siblings_and_school_attended = set_value('name_of_siblings_and_school_attended',$student->name_of_siblings_and_school_attended);

//CHECK if value updated , if yes check if approve, denied  or pending
/*
 * Function located at parent_helper
 */
 
$profile_request = isset($profile_request) ? $profile_request : false;
$req_id = isset($req_id) ? $req_id : 0;

$is_email = req_check_if_updated($req_id, 'email',$student->email, $profile_request);
$is_child_fname = req_check_if_updated($req_id, 'firstname',$student->firstname, $profile_request);
$is_child_mname = req_check_if_updated($req_id, 'middlename',$student->middlename, $profile_request);
$is_child_lname = req_check_if_updated($req_id, 'lastname',$student->lastname, $profile_request);
$is_child_nickname = req_check_if_updated($req_id, 'nickname',$student->nickname, $profile_request);
$is_child_name_ext = req_check_if_updated($req_id, 'name_ext',$student->name_ext, $profile_request);
$is_gender = req_check_if_updated($req_id, 'gender',$student->gender, $profile_request);
$is_child_bdate = req_check_if_updated($req_id, 'dob',$student->dob, $profile_request);
$is_child_nationality = req_check_if_updated($req_id, 'nationality',$student->nationality, $profile_request);
$is_child_placeofbirth = req_check_if_updated($req_id, 'pob',$student->pob, $profile_request);
$is_child_city_address = req_check_if_updated($req_id, 'present_address',$student->present_address, $profile_request);
$is_child_telno = req_check_if_updated($req_id, 'contact_no',$student->contact_no, $profile_request);
$is_mobile_phone = req_check_if_updated($req_id, 'mobile_phone',$student->mobile_phone, $profile_request);
$is_child_religous = req_check_if_updated($req_id, 'religion',$student->religion, $profile_request);
$is_living_in_ph_with_father = req_check_if_updated($req_id, 'living_in_ph_with_father',$student->living_in_ph_with_father, $profile_request);
$is_living_in_ph_with_mother = req_check_if_updated($req_id, 'living_in_ph_with_mother',$student->living_in_ph_with_mother, $profile_request);
$is_living_in_ph_with_step_father = req_check_if_updated($req_id, 'living_in_ph_with_step_father',$student->living_in_ph_with_step_father, $profile_request);
$is_living_in_ph_with_step_mother = req_check_if_updated($req_id, 'living_in_ph_with_step_mother',$student->living_in_ph_with_step_mother, $profile_request);
$is_living_in_ph_with_guardian = req_check_if_updated($req_id, 'living_in_ph_with_guardian',$student->living_in_ph_with_guardian, $profile_request);
$is_living_in_ph_with_legal_guardian_name = req_check_if_updated($req_id, 'living_in_ph_with_legal_guardian_name',$student->living_in_ph_with_legal_guardian_name, $profile_request);
$is_living_in_ph_with_legal_guardian_contact_number = req_check_if_updated($req_id, 'living_in_ph_with_legal_guardian_contact_number',$student->living_in_ph_with_legal_guardian_contact_number, $profile_request);
$is_childs_english_reading_writing_level = req_check_if_updated($req_id, 'childs_english_reading_writing_level',$student->childs_english_reading_writing_level, $profile_request);
$is_childs_english_verbal_proficiency = req_check_if_updated($req_id, 'childs_english_verbal_proficiency',$student->childs_english_verbal_proficiency, $profile_request);
$is_language_at_home = req_check_if_updated($req_id, 'language_at_home',$student->language_at_home, $profile_request);
$is_participation_in_advanced_level_classes = req_check_if_updated($req_id, 'participation_in_advanced_level_classes',$student->participation_in_advanced_level_classes, $profile_request);
$is_remedial_help_in_previous_schools = req_check_if_updated($req_id, 'remedial_help_in_previous_schools',$student->remedial_help_in_previous_schools, $profile_request);
$is_special_talent_interest_dance = req_check_if_updated($req_id, 'special_talent_interest_dance',$student->special_talent_interest_dance, $profile_request);
$is_special_talent_interest_drama = req_check_if_updated($req_id, 'special_talent_interest_drama',$student->special_talent_interest_drama, $profile_request);
$is_special_talent_interest_art = req_check_if_updated($req_id, 'special_talent_interest_art',$student->special_talent_interest_art, $profile_request);
$is_special_talent_interest_acomputer = req_check_if_updated($req_id, 'special_talent_interest_acomputer',$student->special_talent_interest_acomputer, $profile_request);
$is_special_talent_interest_vocal_chorus = req_check_if_updated($req_id, 'special_talent_interest_vocal_chorus',$student->special_talent_interest_vocal_chorus, $profile_request);
$is_special_talent_interest_athletics = req_check_if_updated($req_id, 'special_talent_interest_athletics',$student->special_talent_interest_athletics, $profile_request);
$is_special_talent_interest_athletics_spec = req_check_if_updated($req_id, 'special_talent_interest_athletics_spec',$student->special_talent_interest_athletics_spec, $profile_request);
$is_special_talent_interest_band = req_check_if_updated($req_id, 'special_talent_interest_band',$student->special_talent_interest_band, $profile_request);
$is_special_talent_interest_band_spec = req_check_if_updated($req_id, 'special_talent_interest_band_spec',$student->special_talent_interest_band_spec, $profile_request);
$is_special_talent_interest_string = req_check_if_updated($req_id, 'special_talent_interest_string',$student->special_talent_interest_string, $profile_request);
$is_special_talent_interest_string_spec = req_check_if_updated($req_id, 'special_talent_interest_string_spec',$student->special_talent_interest_string_spec, $profile_request);
$is_hinder_childs_learning = req_check_if_updated($req_id, 'dhc_hinder_learning_process',$student->dhc_hinder_learning_process, $profile_request);
$is_leave_school = req_check_if_updated($req_id, 'leave_school',$student->leave_school, $profile_request);
$is_previous_school = req_check_if_updated($req_id, 'previous_school',$student->previous_school, $profile_request);
$is_previous_grade_level = req_check_if_updated($req_id, 'previous_grade_level',$student->previous_grade_level, $profile_request);
$is_previous_school_address = req_check_if_updated($req_id, 'previous_school_address',$student->previous_school_address, $profile_request);
$is_previous_school_grade_1 = req_check_if_updated($req_id, 'previous_school_grade_1',$student->previous_school_grade_1, $profile_request);
$is_previous_school_name_1 = req_check_if_updated($req_id, 'previous_school_name_1',$student->previous_school_name_1, $profile_request);
$is_previous_school_year_1 = req_check_if_updated($req_id, 'previous_school_year_1',$student->previous_school_year_1, $profile_request);
$is_previous_school_grade_2 = req_check_if_updated($req_id, 'previous_school_grade_2',$student->previous_school_grade_2, $profile_request);
$is_previous_school_name_2 = req_check_if_updated($req_id, 'previous_school_name_2',$student->previous_school_name_2, $profile_request);
$is_previous_school_year_2 = req_check_if_updated($req_id, 'previous_school_year_2',$student->previous_school_year_2, $profile_request);
$is_previous_school_grade_3 = req_check_if_updated($req_id, 'previous_school_grade_3',$student->previous_school_grade_3, $profile_request);
$is_previous_school_name_3 = req_check_if_updated($req_id, 'previous_school_name_3',$student->previous_school_name_3, $profile_request);
$is_previous_school_year_3 = req_check_if_updated($req_id, 'previous_school_year_3',$student->previous_school_year_3, $profile_request);
$is_guardian_name = req_check_if_updated($req_id, 'guardian_name',$student->guardian_name, $profile_request);
$is_guardian_mname = req_check_if_updated($req_id, 'guardian_mname',$student->guardian_mname, $profile_request);
$is_guardian_lname = req_check_if_updated($req_id, 'guardian_lname',$student->guardian_lname, $profile_request);
$is_guardian_citizenship = req_check_if_updated($req_id, 'guardian_citizenship',$student->guardian_citizenship, $profile_request);
$is_guardian_visa = req_check_if_updated($req_id, 'guardian_visa',$student->guardian_visa, $profile_request);
$is_guardian_occup = req_check_if_updated($req_id, 'guardian_occup',$student->guardian_occup, $profile_request);
$is_guardian_office_tel = req_check_if_updated($req_id, 'guardian_office_tel',$student->guardian_office_tel, $profile_request);
$is_guardian_contact_no = req_check_if_updated($req_id, 'guardian_contact_no',$student->guardian_contact_no, $profile_request);
$is_guardian_contact_no_text = req_check_if_updated($req_id, 'guardian_contact_no_text',$student->guardian_contact_no_text, $profile_request);
$is_name_of_siblings_and_school_attended = req_check_if_updated($req_id, 'name_of_siblings_and_school_attended',$student->name_of_siblings_and_school_attended, $profile_request);
?>

<div>
<div class="panel callout"><h6>Personal Information</h6></div>
<!-- start of Set SECTION-->
<?if(!empty($student)):
	// $this->load->view('profile/_profile_links');
?>

	<div class="row">
		<span class="clearfix"></span>
		<div class="alert-box secondary">Section And Grade Level Assignment.</div>
		<span class="clearfix"></span>
		<div class="large-6 columns">
			
				<div>
					<label class="label">Section: </label>					
					<input type="text" disabled value="<?echo @$sections[$student->e_section_id];?>">
				</div>
				<div>
					<label class="label">Grade Level: </label>					
					<input type="text" disabled value="<?echo @$level_dropdown[$student->level_id];?>">
				</div>
				<div>
					<label class="label">Block </label>					
					<input type="text" disabled value="<?echo @$student->block_name;?>">
				</div>
	

		</div>
		<div class="large-6 columns">
			<div>
				<div class="input-block">
					<label class="label">Student ID #:</label>
					<input type="text" value="<?=$student->idno;?>" disabled>
				</div>
				
				<div class="input-block">
					<label class="label">Student Type:</label>
					<input type="text" value="<?=$student->student_type;?>" disabled>
				</div>
			</div>
		</div>
    </div>

	<!-- End of Set SECTION-->
	
<div class="inner-border">
<div class="row">
	<span class="clearfix"></span>
		<div class="alert-box secondary">Student Personal Information</div>
		<span class="clearfix"></span>

<?=form_open('',' class="custom profile_form" id ="personal_information" ')?>

	
	<div class="large-8 columns">
		<label style="font-weight:bold;">
		<span data-tooltip class="has-tip tip-top help-icon" title="Student information, credentials and other news will be sent to your email address"></span>
		Parent's Email Address
		</label>
		<?=form_error('email');?> <?=$is_email->checkbox?> <?=$profile_request?"(Editing this will not affect your parent login)":""?>
		<input class="<?=$is_email->changed?$is_email->class:''?>" type="email" name="email" value="<?=$email;?>">
	</div>
	<div class="clearfix"></div>
	
	<div class="large-4 columns">
		<label style="font-weight:bold;">First Name</label> <?=$is_child_fname->checkbox?>
		<?=form_error('child_fname');?>
		<input class="<?=$is_child_fname->changed?$is_child_fname->class:''?>" type="text" name="child_fname" value="<?=$child_fname;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Middle Name</label> <?=$is_child_mname->checkbox?>
		<?=form_error('child_mname');?>
		<input class="<?=$is_child_mname->changed?$is_child_mname->class:''?>" type="text" name="child_mname" value="<?=$child_mname;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Last Name</label> <?=$is_child_lname->checkbox?>
		<?=form_error('child_lname');?>
		<input class="<?=$is_child_lname->changed?$is_child_lname->class:''?>" type="text" name="child_lname" value="<?=$child_lname;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Nickname</label> <?=$is_child_nickname->checkbox?>
		<?=form_error('child_nickname');?>
		<input class="<?=$is_child_nickname->changed?$is_child_nickname->class:''?>" type="text" name="child_nickname" value="<?=$child_nickname;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Name Ext (e.g jr,II,III)</label> <?=$is_child_name_ext->checkbox?>
		<?=form_error('child_name_ext');?>
		<input class="<?=$is_child_name_ext->changed?$is_child_name_ext->class:''?>" type="text" name="child_name_ext" value="<?=$child_name_ext;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Gender</label> <?=$is_gender->checkbox?>
		<?=form_error('gender');?>
		<?php $gclass = $is_gender->changed?$is_gender->class:''; ?>
		<?=form_dropdown('gender', $genderAttrib, $gender, "class='$gclass'" );?>
	</div>
	<div class="clearfix"></div>
	
	<div class="large-4 columns">
		<label style="font-weight:bold;">Childs Birthdate:</label> <?=$is_child_bdate->checkbox?>
		<?=form_error('child_bdate');?>
		<input class="<?=$is_child_bdate->changed?$is_child_bdate->class:''?>" type="text" name="child_bdate" class="datepicker" value="<?=$child_bdate;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Citizenship(Passport)</label> <?=$is_child_nationality->checkbox?>
		<input class="<?=$is_child_nationality->changed?$is_child_nationality->class:''?>" type="text" name="child_nationality" value="<?=$child_nationality;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Place of Birth</label> <?=$is_child_placeofbirth->checkbox?>
		<?=form_error('child_placeofbirth');?>
		<input class="<?=$is_child_placeofbirth->changed?$is_child_placeofbirth->class:''?>" type="text" name="child_placeofbirth" value="<?=$child_placeofbirth;?>">
	</div>
	<div class="clearfix"></div>
	<div  class="large-12 columns">
		<label style="font-weight:bold;">Residential Address in the Philippines</label> <?=$is_child_city_address->checkbox?>
		<?='<br>'.form_error('child_city_address');?>
		<input class="<?=$is_child_city_address->changed?$is_child_city_address->class:''?>" type="text" name="child_city_address" value="<?=$child_city_address;?>">
	</div>
	<div class="clearfix"></div>
	
	<div class="large-4 columns">
		<label style="font-weight:bold;">Home Phone</label> <?=$is_child_telno->checkbox?>
		<?=form_error('child_telno');?>
		<input class="<?=$is_child_telno->changed?$is_child_telno->class:''?>" type="text" name="child_telno" value="<?=$child_telno;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Mobile Phone</label> <?=$is_mobile_phone->checkbox?>
		<input class="<?=$is_mobile_phone->changed?$is_mobile_phone->class:''?>" type="text" name="mobile_phone" value="<?=$mobile_phone;?>">
	</div>
	<div class="large-4 columns">
		<label style="font-weight:bold;">Religion</label> <?=$is_child_religous->checkbox?>
		<?=form_error('child_religous');?>
		<input class="<?=$is_child_religous->changed?$is_child_religous->class:''?>" type="text" name="child_religous" value="<?=$child_religous;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">1- The student will be living in the Philippines with (pls. check all that apply):</label>
	</div>
	<div class="clearfix"></div>
	<div class="large-4 columns">
		<?=$is_living_in_ph_with_father->checkbox?> <br/>
		<?php $lipclass = $is_living_in_ph_with_father->changed?$is_living_in_ph_with_father->class:''; ?>
		<?php if($living_in_ph_with_father == 'yes'){ ?>
		<?=form_checkbox('living_in_ph_with_father', 'yes', TRUE, "class='left $lipclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('living_in_ph_with_father', 'yes', FALSE, "class='left $lipclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Father/Step Father</label>
	</div>
	<div class="large-4 columns">
		<?=$is_living_in_ph_with_mother->checkbox?> <br/>
		<?php $limclass = $is_living_in_ph_with_mother->changed?$is_living_in_ph_with_mother->class:''; ?>
		<?php if($living_in_ph_with_mother == 'yes'){ ?>
		<?=form_checkbox('living_in_ph_with_mother', 'yes', TRUE, "class='left $limclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('living_in_ph_with_mother', 'yes', FALSE, "class='left $limclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Mother/Step Mother</label>
	</div>
	<div class="clearfix"></div>
	<!--
	<div class="large-3	columns">
		<?php if($living_in_ph_with_step_father == 'yes'){ ?>
		<?=form_checkbox('living_in_ph_with_step_father', 'yes', TRUE, 'class="left"');?>
		<?php }else{ ?>
		<?=form_checkbox('living_in_ph_with_step_father', 'yes', FALSE, 'class="left"');?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Step Father</label>
	</div>
	<div class="large-3 columns">
		<?php if($living_in_ph_with_step_mother == 'yes'){ ?>
		<?=form_checkbox('living_in_ph_with_step_mother', 'yes', TRUE, 'class="left"');?>
		<?php }else{ ?>
		<?=form_checkbox('living_in_ph_with_step_mother', 'yes', FALSE, 'class="left"');?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Step Mother</label>
	</div>
	<div class="clearfix"></div>
	-->
	<div class="large-3 columns">
		<?=$is_living_in_ph_with_guardian->checkbox?> <br/>
		<?php $ligclass = $is_living_in_ph_with_guardian->changed?$is_living_in_ph_with_guardian->class:''; ?>
		<?php if($living_in_ph_with_guardian == 'yes'){ ?>
		<?=form_checkbox('living_in_ph_with_guardian', 'yes', TRUE, "class='left $ligclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('living_in_ph_with_guardian', 'yes', FALSE, "class='left $ligclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Guardian</label>
	</div>
	<!--
	<div class="large-4 small-12 columns">
		<input type="text" name="living_in_ph_with_legal_guardian_name" value="<?=$living_in_ph_with_legal_guardian_name;?>">
	</div>
	<div class="large-3 small-12 columns">
		<input type="text" name="living_in_ph_with_legal_guardian_contact_number" value="<?=$living_in_ph_with_legal_guardian_contact_number;?>">
	</div>
-->
	<div class="clearfix"></div>

	<div class="large-4 columns">
				<label style="font-weight:bold;">Guardian's First Name</label> <?=$is_guardian_name->checkbox?>
				<input class="<?=$is_guardian_name->changed?$is_guardian_name->class:''?>" type="text" name="guardian_name" value="<?=$guardian_name;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Guardian's Middle Name</label> <?=$is_guardian_mname->checkbox?>
				<input class="<?=$is_guardian_mname->changed?$is_guardian_mname->class:''?>" type="text" name="guardian_mname" value="<?=$guardian_mname;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Guardian's Last Name</label> <?=$is_guardian_lname->checkbox?>
				<input class="<?=$is_guardian_lname->changed?$is_guardian_lname->class:''?>" type="text" name="guardian_lname" value="<?=$guardian_lname;?>">
			</div>
			<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Citizenship (Passport)</label> <?=$is_guardian_citizenship->checkbox?>
				<input class="<?=$is_guardian_citizenship->changed?$is_guardian_citizenship->class:''?>" type="text" name="guardian_citizenship" value="<?=$guardian_citizenship;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Philippine Visa Status</label> <?=$is_guardian_visa->checkbox?>
				<input class="<?=$is_guardian_visa->changed?$is_guardian_visa->class:''?>" type="text" name="guardian_visa" value="<?=$guardian_visa;?>">
			</div>
		<div class="clearfix"></div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Employer or Organization</label> <?=$is_guardian_occup->checkbox?>
				<input class="<?=$is_guardian_occup->changed?$is_guardian_occup->class:''?>" type="text" name="guardian_occup" value="<?=$guardian_occup;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Office Phone Number</label> <?=$is_guardian_office_tel->checkbox?>
				<input class="<?=$is_guardian_office_tel->changed?$is_guardian_office_tel->class:''?>" type="text" name="guardian_office_tel" value="<?=$guardian_office_tel;?>">
			</div>
			<div class="large-4 columns">
				<label style="font-weight:bold;">Mobile Number</label> <?=$is_guardian_contact_no->checkbox?>
				<input class="<?=$is_guardian_contact_no->changed?$is_guardian_contact_no->class:''?>" type="text" name="guardian_contact_no" value="<?=$guardian_contact_no;?>">
			</div>
		<div class="clearfix"></div>
	
	<div class="large-6 columns" style="padding:0px;">
		<label style="font-weight:bold;">2- Your child's English reading and writing level: </label>
	</div>
	<div class="large-3 columns"> <?=$is_childs_english_reading_writing_level->checkbox?>
		<?php $wlclass = $is_childs_english_reading_writing_level->changed?$is_childs_english_reading_writing_level->class:''; ?>
		<?=form_dropdown('childs_english_reading_writing_level', $chooseAttrib, $childs_english_reading_writing_level, "class='$wlclass'");?>
	</div>
	<div class="clearfix"></div>
	<div class="large-6 columns" style="padding:0px;">
		<label style="font-weight:bold;">3- Your child's English verbal proficiency: </label>
	</div>
	<div class="large-3 columns"> <?=$is_childs_english_verbal_proficiency->checkbox?>
	<?php $vpclass = $is_childs_english_verbal_proficiency->changed?$is_childs_english_verbal_proficiency->class:''; ?>
		<?=form_dropdown('childs_english_verbal_proficiency', $chooseAttrib, $childs_english_verbal_proficiency, "class='$vpclass'");?>
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">4- Languages Spoken at home?</label> <?=$is_language_at_home->checkbox?>
		<input class="<?=$is_language_at_home->changed?$is_language_at_home->class:''?>" type="text" name="language_at_home" value="<?=$language_at_home;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">5- List any participation in advanced level classes (i.e., Advanced Math, Gifted or Talented, Gateway, Writing, etc.)</label> <?=$is_participation_in_advanced_level_classes->checkbox?>
		<input class="<?=$is_participation_in_advanced_level_classes->changed?$is_participation_in_advanced_level_classes->class:''?>" type="text" name="participation_in_advanced_level_classes" value="<?=$participation_in_advanced_level_classes;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">6- Did your child receive any remedial help in previous schools (i.e., Remedial Program, Special Education, Speech Therapy, IEP, IDP, etc). <br/>If yes, please explain and provide latest testing results.</label> <?=$is_remedial_help_in_previous_schools->checkbox?>
		<input class="<?=$is_remedial_help_in_previous_schools->changed?$is_remedial_help_in_previous_schools->class:''?>" type="text" name="remedial_help_in_previous_schools" value="<?=$remedial_help_in_previous_schools;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">7- Does your child have any special talent or interest in:</label>
	</div>
	<div class="clearfix"></div>

	<div class="large-2 columns">
		<?=$is_special_talent_interest_dance->checkbox?> <br/>
		<?php $tdclass = $is_special_talent_interest_dance->changed?$is_special_talent_interest_dance->class:''; ?>
		<?php if($special_talent_interest_dance == 'yes'){ ?>
		<?=form_checkbox('special_talent_interest_dance', 'yes', TRUE, "class='left $tdclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('special_talent_interest_dance', 'yes', FALSE, "class='left $tdclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Dance</label>
	</div>
	<div class="large-2 columns">
		<?=$is_special_talent_interest_drama->checkbox?> <br/>
		<?php $trclass = $is_special_talent_interest_drama->changed?$is_special_talent_interest_drama->class:''; ?>
		<?php if($special_talent_interest_drama == 'yes'){ ?>
		<?=form_checkbox('special_talent_interest_drama', 'yes', TRUE, "class='left $trclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('special_talent_interest_drama', 'yes', FALSE, "class='left $trclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Drama</label>
	</div>
	<div class="large-2 columns">
		<?=$is_special_talent_interest_art->checkbox?> <br/>
		<?php $taclass = $is_special_talent_interest_art->changed?$is_special_talent_interest_art->class:''; ?>
		<?php if($special_talent_interest_art == 'yes'){ ?>
		<?=form_checkbox('special_talent_interest_art', 'yes', TRUE, "class='left $taclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('special_talent_interest_art', 'yes', FALSE, "class='left $taclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Art</label>
	</div>
	<div class="large-2 columns">
		<?=$is_special_talent_interest_acomputer->checkbox?> <br/>
		<?php $tcclass = $is_special_talent_interest_acomputer->changed?$is_special_talent_interest_acomputer->class:''; ?>
		<?php if($special_talent_interest_acomputer == 'yes'){ ?>
		<?=form_checkbox('special_talent_interest_acomputer', 'yes', TRUE, "class='left $tcclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('special_talent_interest_acomputer', 'yes', FALSE, "class='left $tcclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Computer</label>
	</div>
	<div class="large-3 columns">
		<?=$is_special_talent_interest_vocal_chorus->checkbox?> <br/>
		<?php $tvclass = $is_special_talent_interest_vocal_chorus->changed?$is_special_talent_interest_vocal_chorus->class:''; ?>
		<?php if($special_talent_interest_vocal_chorus == 'yes'){ ?>
		<?=form_checkbox('special_talent_interest_vocal_chorus', 'yes', TRUE, "class='left $tvclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('special_talent_interest_vocal_chorus', 'yes', FALSE, "class='left $tvclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Vocal or Chorus</label>
	</div>
	<div class="clearfix"></div>
	<div class="large-4 columns">
		<?=$is_special_talent_interest_athletics->checkbox?> <br/>
		<?php $ttclass = $is_special_talent_interest_athletics->changed?$is_special_talent_interest_athletics->class:''; ?>
		<?php if($special_talent_interest_athletics == 'yes'){ ?>
		<?=form_checkbox('special_talent_interest_athletics', 'yes', TRUE, "class='left $ttclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('special_talent_interest_athletics', 'yes', FALSE, "class='left $ttclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Athletics (Sports)</label>
	</div>
	<div class="large-8 columns">
		<?=$is_special_talent_interest_athletics_spec->checkbox?>
		<input class="<?=$is_special_talent_interest_athletics_spec->changed?$is_special_talent_interest_athletics_spec->class:''?>" type="text" name="special_talent_interest_athletics_spec" value="<?=$special_talent_interest_athletics_spec;?>">
	</div>
	<div class="clearfix"></div>
	<div class="large-4 columns">
		<?=$is_special_talent_interest_band->checkbox?> <br/>
		<?php $tbclass = $is_special_talent_interest_band->changed?$is_special_talent_interest_band->class:''; ?>
		<?php if($special_talent_interest_band == 'yes'){ ?>
		<?=form_checkbox('special_talent_interest_band', 'yes', TRUE, "class='left $tbclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('special_talent_interest_band', 'yes', FALSE, "class='left $tbclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;Band (Instrument/s)</label>
	</div>
	<div class="large-8 columns">
		<?=$is_special_talent_interest_band_spec->checkbox?>
		<input class="<?=$is_special_talent_interest_band_spec->changed?$is_special_talent_interest_band_spec->class:''?>" type="text" name="special_talent_interest_band_spec" value="<?=$special_talent_interest_band_spec;?>">
	</div>
	<div class="clearfix"></div>
	<div class="large-4 columns">
		<?=$is_special_talent_interest_string->checkbox?> <br/>
		<?php $tsclass = $is_special_talent_interest_string->changed?$is_special_talent_interest_string->class:''; ?>
		<?php if($special_talent_interest_string == 'yes'){ ?>
		<?=form_checkbox('special_talent_interest_string', 'yes', TRUE, "class='left $tsclass'");?>
		<?php }else{ ?>
		<?=form_checkbox('special_talent_interest_string', 'yes', FALSE, "class='left $tsclass'");?>
		<?php } ?>
		<label style="font-weight:bold;">&nbsp;&nbsp;String (Instrument/s)</label>
	</div>
	<div class="large-8 columns">
		<?=$is_special_talent_interest_string_spec->checkbox?>
		<input class="<?=$is_special_talent_interest_string_spec->changed?$is_special_talent_interest_string_spec->class:''?>" type="text" name="special_talent_interest_string_spec" value="<?=$special_talent_interest_string_spec;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">8- Is there any other information you think the teacher should know about your child?</label> <?=$is_hinder_childs_learning->checkbox?>
		<?=form_error('hinder_childs_learning');?>
		<textarea class="<?=$is_hinder_childs_learning->changed?$is_hinder_childs_learning->class:''?>" name="hinder_childs_learning"><?=$hinder_childs_learning;?></textarea>
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">9- Has your child ever been asked to leave school because of any behavioral/disciplinary problems? If yes, please explain.</label> <?=$is_leave_school->checkbox?>
		<textarea class="<?=$is_leave_school->changed?$is_leave_school->class:''?>" name="leave_school"><?=$leave_school;?></textarea>
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">Name of Previous School:</label> <?=$is_previous_school->checkbox?>
		<input class="<?=$is_previous_school->changed?$is_previous_school->class:''?>" type="text" name="previous_school" value="<?=$previous_school;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">Complete Address of Previous School (please include zip code):</label> <?=$is_previous_school_address->checkbox?>
		<input class="<?=$is_previous_school_address->changed?$is_previous_school_address->class:''?>" type="text" name="previous_school_address" value="<?=$previous_school_address;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">Grade Level and School Year Attended:</label> <?=$is_previous_grade_level->checkbox?>
		<input class="<?=$is_previous_grade_level->changed?$is_previous_grade_level->class:''?>" type="text" name="previous_grade_level" value="<?=$previous_grade_level;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">Name of Sibling/s and School Attended</label> <?=$is_name_of_siblings_and_school_attended->checkbox?>
		<input class="<?=$is_name_of_siblings_and_school_attended->changed?$is_name_of_siblings_and_school_attended->class:''?>" type="text" name="name_of_siblings_and_school_attended" value="<?=$name_of_siblings_and_school_attended;?>">
	</div>
	<div class="clearfix"></div>
	
	<?if(isset($student->edit) && $student->edit === 1):?>
			<div>
				<input type="hidden" name="profile_id" value="<?=$student->profile_id;?>">
				<input type="hidden" name="enrollment_id" value="<?=$student->enrollment_id;?>">
				<input type="hidden" name="update_personal_profile" value="true">
				<input type="submit" name="update_personal_profile" value="Update Student Personal Information" class="btn btn-primary">
			</div>
	<?endif;?>
	
</form>
</div>
<?php else:?>
	<div class="alert-box">
		<h1>Invalid student.</h1>
	</div>
<?php endif;?>